package ylg.cn.com.newdemo;

import android.app.Application;
import android.content.Context;


import ylg.cn.com.newdemo.injector.components.ApplicationComponent;
import ylg.cn.com.newdemo.rxbus.RxBus;
import ylg.cn.gen.DaoMaster;
import ylg.cn.gen.DaoSession;

/**
 * Created by Administrator on 2017/11/25.
 */

public class AndroidApplication extends Application {

    private static final String DB_NAME = "news-db";

    private static ApplicationComponent sAppComponent;
    private static Context sContext;
    private DaoSession mDaoSession;
    // 因为下载那边需要用，这里在外面实例化在通过 ApplicationModule 设置
    private RxBus mRxBus = new RxBus();
    @Override
    public void onCreate() {
        super.onCreate();
        sContext = this;

    }
    public static Context getContext() {
        return sContext;
    }

    /**
     * 初始化数据库
     */
    private void _initDatabase() {

    }
}
